﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangeFeaturDoctors.aspx.cs"
    Inherits="Admin_ChangeFeaturDoctors" %>

<%@ Register Src="Include/Ad_footer.ascx" TagName="Ad_footer" TagPrefix="uc3" %>
<%@ Register Src="Include/Ad_left.ascx" TagName="Ad_left" TagPrefix="uc2" %>
<%@ Register Src="Include/Ad_header.ascx" TagName="Ad_header" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
  <link href="include\styles.css" rel="stylesheet" />
    <script>
    function ChangeHeaderAsNeeded(chkBox)
    {
          
            if (CheckBoxIDs != null)
            {
                for (var i = 0; i < CheckBoxIDs.length; i++)
                {
                    var cb = document.getElementById(CheckBoxIDs[i]);
                    if (!cb.checked)
                    {
                        ChangeCheckBoxState(CheckBoxIDs[0], false);
                        return;
                    }
                }
            ChangeCheckBoxState(CheckBoxIDs[0], true);
            }
    }
           function ChangeCheckBoxState(id, checkState)
           {
              var cb = document.getElementById(id);
              if (cb != null)
              cb.checked = checkState;
           }

       function ChangeAllCheckBoxStates(checkState)
       {
          if (CheckBoxIDs != null)
          {
             for (var i = 0; i < CheckBoxIDs.length; i++)
             ChangeCheckBoxState(CheckBoxIDs[i], checkState);
          }
       }
       
      
    
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <!-- Masthead starts from here-->
            <uc1:Ad_header ID="Ad_header1" runat="server" />
            <!-- Masthead ends here-->
            <tr>
                <td>
                </td>
                <td style="width: 950px">
                    <table border="0" cellspacing="0" cellpadding="0" style="width: 860px; height: 639px">
                        <tr>
                            <td width="140" valign="top">
                                <!-- Left panel starts from here-->
                                <uc2:Ad_left ID="Ad_left1" runat="server" />
                                <!-- Left panel ends from here-->
                            </td>
                            <td width="15" valign="top">
                                <img src="../images/spacer.gif" width="15" height="1" />
                            </td>
                            <td valign="top" style="width: 761px">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tblborder">
                                    <tr>
                                        <td class="normalblack_12">
                                            
                                              <h2>
                                                Set Feature And Top Feature Doctors
                                            </h2>
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td  class="normalgrey_12"style="height: 10px; width: 526px;">
                                            
                                                Ckheck the boxes from Feature Doctor and Top Feature Doctor columns to set the doctors
                                                as feature and Top Feature doctors respectively to display at Home Page
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="normalgrey_12" style="height: 10px; width: 526px;">
                                            
                                                Note:Only 5 feature and 3 top featur doctors can be set at a tme at Home page so
                                                to set a new doctor on Home Page you have to uncheck an existing one
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 43px; width: 526px;">
                                            <strong class="normalgrey_12">Name</strong>:&nbsp;<asp:TextBox ID="txtName" runat="server"
                                                Width="95px"></asp:TextBox>
                                            <strong class="normalgrey_12">State</strong>:&nbsp;<asp:DropDownList Width="14%"
                                                ID="ddStateList" runat="server">
                                            </asp:DropDownList>
                                            <strong class="normalgrey_12">Speciality</strong>:&nbsp;<asp:DropDownList Width="14%"
                                                ID="ddlSpeciality" runat="server">
                                            </asp:DropDownList>
                                            <%--<strong class="normalgrey_12">Email</strong>:&nbsp;<asp:TextBox   ID="txtEmail" runat="server" Width="150px"></asp:TextBox>--%>
                                            <asp:Button ID="butSerach" runat="server" Text="Search" OnClick="butSerach_Click" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:GridView DataKeyNames="Id" ID="GridView1" runat="server" AutoGenerateColumns="False"
                                                ShowFooter="True" OnRowDataBound="GridView1_RowDataBound" CssClass="normalgrey_12"
                                                Width="95%" OnRowCommand="GridView1_RowCommand" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging">
                                                <Columns>
                                                    <asp:BoundField HeaderText="Name" DataField="Name" />
                                                    <%-- <asp:BoundField HeaderText="Address" DataField="Location" />--%>
                                                    <asp:BoundField HeaderText="Speciality" DataField="speciality" />
                                                    <asp:BoundField HeaderText="State" DataField="State" />
                                                    <%-- <asp:BoundField HeaderText="Phone" DataField="Phone" />
                        <asp:BoundField HeaderText="Email" DataField="Email" />--%>
                                                    <asp:TemplateField>
                                                        <%--<HeaderTemplate>
                       <asp:CheckBox  runat="server" ID="HeaderLevelCheckBox" />
                    </HeaderTemplate>--%>
                                                        <%--<ItemTemplate>
                   <asp:CheckBox  runat="server" ID="RowLevelCheckBox"  Value='<%#DataBinder.Eval(Container.DataItem,"ID")%>' />
                </ItemTemplate>--%>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Featured Doctors">
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="chkFD" runat="server" AutoPostBack="True" ToolTip="Make this doctor as a Featured Doctor"
                                                                OnCheckedChanged="chkFD_CheckedChanged" Checked='<%#Eval("isCheck") %>' />
                                                            <asp:HiddenField ID="hdnFlag" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Top Featured Doctors">
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="chkFDTop" runat="server" AutoPostBack="True" ToolTip="Make this  as a Top Featured Doctor"
                                                                OnCheckedChanged="chkFDTop_CheckedChanged" Checked='<%#Eval("isCheckTop") %>' />
                                                            <asp:HiddenField ID="hdnFlagTop" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <RowStyle HorizontalAlign="Left" />
                                                <PagerStyle HorizontalAlign="Center" />
                                                <FooterStyle HorizontalAlign="Left" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="30" colspan="3">
                </td>
            </tr>
            <tr>
                <td height="1" bgcolor="#CCCCCC">
                    <img src="../images/spacer.gif" width="1" height="1" alt="" />
                </td>
                <td bgcolor="#CCCCCC" style="width: 950px">
                    <img src="../images/spacer.gif" width="1" height="1" alt="" />
                </td>
                <td bgcolor="#CCCCCC">
                    <img src="../images/spacer.gif" width="1" height="1" alt="" />
                </td>
            </tr>
            <tr>
                <td height="20" colspan="3">
                </td>
            </tr>
            <!-- Bottom starts from here-->
            <uc3:Ad_footer ID="Ad_footer1" runat="server" />
            <!-- Bottom ends here-->
        </table>
    </div>
    </form>
</body>
</html>
